﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HouseHoldingRunBuilder.cs" company="DST Nexdox">
//   Copyright (c) DST Nexdox. All rights reserved.
// </copyright>
// <summary>
//   Defines the HouseHoldingRunBuilder type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Builder
{
  using Entities;

  public class HouseHoldingRunBuilder : Builder<HouseHoldingRun>
  {
    public HouseHoldingRunBuilder()
    {
      HouseHoldingRunBuilder.Instance = new HouseHoldingRun();
    }

    public HouseHoldingRunBuilder WithHouseHold(HouseHold houseHold)
    {
      if (houseHold != null)
      {
        Instance.HouseHolds.Add(houseHold);
      }

      return this;
    }

    public HouseHoldingRunBuilder WithGridRun(GridRun gridRun)
    {
      if (gridRun != null)
      {
        Instance.GridRuns.Add(gridRun);
      }

      return this;
    }
  }
}
